package com.easylive.web.controller;

import com.easylive.entity.component.RedisComponent;
import com.easylive.entity.vo.ResponseVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: yudaxian
 * @DateTime: 2024/11/8 15:10
 **/
@RestController
@RequestMapping("/sysSetting")
public class SysSettingController extends ABaseController {

    @Resource
    private RedisComponent redisComponent;

    @PostMapping("/getSetting")
    public ResponseVO getSetting() {
        return getSuccessResponseVO(redisComponent.getSysSetting());
    }

}
